package com.xueyi.system.facilitie.domain.po;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.facilitie.domain.dto.BaseFacilitieDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 设施信息 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_facilitie", excludeProperty = {"sort","status"},autoResultMap = true)
public class BaseFacilitiePo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /** 编号 */
@Excel(name = "编号")
@TableField("code")
private String code;

    /** 设备类型（1种植设施、2产地加工设施、3包装设施、4质量检验设施、5仓储设施、6自定义） */
@Excel(name = "设备类型", readConverterExp = "1=种植设施、2产地加工设施、3包装设施、4质量检验设施、5仓储设施、6自定义")
@TableField("type")
private String type;

    /** 设施内容 */
@Excel(name = "设施内容")
@TableField("content")
private String content;

    /** 型号（规格）(1钢结构、2混泥土结构、3活动板房、4其他) */
@Excel(name = "型号", readConverterExp = "规=格")
@TableField("structure_type")
private String structureType;

    /** 生产厂家 */
@Excel(name = "生产厂家")
@TableField("manufacturers")
private String manufacturers;

    /** 使用部门id */
@Excel(name = "使用部门id")
@TableField("dept_id")
private Long deptId;

    /** 使用部名称 */
@Excel(name = "使用部名称")
@TableField("dept_name")
private String deptName;

    /** 技术参数 */
@Excel(name = "技术参数")
@TableField("technical_parameters")
private String technicalParameters;

    /** 附件 */
@TableField(value = "accessory", typeHandler = FastjsonTypeHandler.class)
private JSONArray accessory;

    /** 验收日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("check_time")
private LocalDateTime checkTime;

public void setCode(String code) {
    this.code = code;
}

public String getCode() {
    return code;
}

public void setType(String type) {
    this.type = type;
}

public String getType() {
    return type;
}

public void setContent(String content) {
    this.content = content;
}

public String getContent() {
    return content;
}

public void setStructureType(String structureType) {
    this.structureType = structureType;
}

public String getStructureType() {
    return structureType;
}

public void setManufacturers(String manufacturers) {
    this.manufacturers = manufacturers;
}

public String getManufacturers() {
    return manufacturers;
}

public void setDeptId(Long deptId) {
    this.deptId = deptId;
}

public Long getDeptId() {
    return deptId;
}

public void setDeptName(String deptName) {
    this.deptName = deptName;
}

public String getDeptName() {
    return deptName;
}

public void setTechnicalParameters(String technicalParameters) {
    this.technicalParameters = technicalParameters;
}

public String getTechnicalParameters() {
    return technicalParameters;
}

public void setAccessory(JSONArray accessory) {
    this.accessory = accessory;
}

public JSONArray getAccessory() {
    return accessory;
}

public void setCheckTime(LocalDateTime checkTime) {
    this.checkTime = checkTime;
}

public LocalDateTime getCheckTime() {
    return checkTime;
}

}
